<%-- 
    Document   : home
    Created on : 2-sep-2011, 11:18:54
    Author     : fgo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@include file="includes/header.jsp" %>

Shopping lists <a href="shoppingList/add"><img src="<%= request.getContextPath()%>/style/new.png" alt="new" width="16px"/></a>
<table>
    <c:forEach items="${shoppingLists}" var="list">
        <tr>
            <td>
                <a href="shoppingList/edit/${list.id}">
                    <img src="<%= request.getContextPath()%>/style/edit.png" alt="edit" width="16px" />
                </a>
            </td>
            <td>
                <a href="shoppingList/delete/${list.id}">
                    <img src="<%= request.getContextPath()%>/style/delete.png" alt="delete" width="16px" />
                </a>
            </td>
            <td>
                <a href="shoppingList/${list.id}">${list.name}</a>
            </td>
        </tr>
    </c:forEach>
</table>

<%@include file="includes/footer.jsp" %>
